package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperWebContribute implements Serializable {
    private Integer id;

    private Integer xubi;

    /**
     * 捐赠活动标题
     */
    private String title;

    /**
     * 捐赠项目主图片路径 
     */
    private String imgPath;

    /**
     * 废弃掉 准备存文本了 4000字节太少 
     */
    private String body;

    private Date indate;

    /**
     * 爱心捐赠列表页面显示的缩略图路径 用 , 分隔
 
     */
    private String thumbnailPath;

    /**
     * 单位虚拟币价值 如：5绿猫币 = 1顿健康午餐/人
     */
    private String coinWorth;

    /**
     * 发起人
     */
    private String sponsor;

    /**
     * 发起日期
     */
    private Date startDate;

    /**
     * 结束日期
     */
    private Date endDate;

    /**
     * 所需资金
     */
    private Double totalMoney;

    /**
     * 状态0-预告项目 1-进行中项目 2-已完成项目
     */
    private Integer flag;

    /**
     * 项目进展0-进入捐赠池；1-已满；2-移交；3-展示；4-成功
     */
    private Integer progress;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getXubi() {
        return xubi;
    }

    public void setXubi(Integer xubi) {
        this.xubi = xubi;
    }

    /**
     * 捐赠活动标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 捐赠活动标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 捐赠项目主图片路径 
     */
    public String getImgPath() {
        return imgPath;
    }

    /**
     * 捐赠项目主图片路径 
     */
    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    /**
     * 废弃掉 准备存文本了 4000字节太少 
     */
    public String getBody() {
        return body;
    }

    /**
     * 废弃掉 准备存文本了 4000字节太少 
     */
    public void setBody(String body) {
        this.body = body;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    /**
     * 爱心捐赠列表页面显示的缩略图路径 用 , 分隔
 
     */
    public String getThumbnailPath() {
        return thumbnailPath;
    }

    /**
     * 爱心捐赠列表页面显示的缩略图路径 用 , 分隔
 
     */
    public void setThumbnailPath(String thumbnailPath) {
        this.thumbnailPath = thumbnailPath;
    }

    /**
     * 单位虚拟币价值 如：5绿猫币 = 1顿健康午餐/人
     */
    public String getCoinWorth() {
        return coinWorth;
    }

    /**
     * 单位虚拟币价值 如：5绿猫币 = 1顿健康午餐/人
     */
    public void setCoinWorth(String coinWorth) {
        this.coinWorth = coinWorth;
    }

    /**
     * 发起人
     */
    public String getSponsor() {
        return sponsor;
    }

    /**
     * 发起人
     */
    public void setSponsor(String sponsor) {
        this.sponsor = sponsor;
    }

    /**
     * 发起日期
     */
    public Date getStartDate() {
        return startDate;
    }

    /**
     * 发起日期
     */
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    /**
     * 结束日期
     */
    public Date getEndDate() {
        return endDate;
    }

    /**
     * 结束日期
     */
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    /**
     * 所需资金
     */
    public Double getTotalMoney() {
        return totalMoney;
    }

    /**
     * 所需资金
     */
    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    /**
     * 状态0-预告项目 1-进行中项目 2-已完成项目
     */
    public Integer getFlag() {
        return flag;
    }

    /**
     * 状态0-预告项目 1-进行中项目 2-已完成项目
     */
    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    /**
     * 项目进展0-进入捐赠池；1-已满；2-移交；3-展示；4-成功
     */
    public Integer getProgress() {
        return progress;
    }

    /**
     * 项目进展0-进入捐赠池；1-已满；2-移交；3-展示；4-成功
     */
    public void setProgress(Integer progress) {
        this.progress = progress;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", xubi=").append(xubi);
        sb.append(", title=").append(title);
        sb.append(", imgPath=").append(imgPath);
        sb.append(", body=").append(body);
        sb.append(", indate=").append(indate);
        sb.append(", thumbnailPath=").append(thumbnailPath);
        sb.append(", coinWorth=").append(coinWorth);
        sb.append(", sponsor=").append(sponsor);
        sb.append(", startDate=").append(startDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", totalMoney=").append(totalMoney);
        sb.append(", flag=").append(flag);
        sb.append(", progress=").append(progress);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWebContribute other = (SuperWebContribute) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getXubi() == null ? other.getXubi() == null : this.getXubi().equals(other.getXubi()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getImgPath() == null ? other.getImgPath() == null : this.getImgPath().equals(other.getImgPath()))
            && (this.getBody() == null ? other.getBody() == null : this.getBody().equals(other.getBody()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getThumbnailPath() == null ? other.getThumbnailPath() == null : this.getThumbnailPath().equals(other.getThumbnailPath()))
            && (this.getCoinWorth() == null ? other.getCoinWorth() == null : this.getCoinWorth().equals(other.getCoinWorth()))
            && (this.getSponsor() == null ? other.getSponsor() == null : this.getSponsor().equals(other.getSponsor()))
            && (this.getStartDate() == null ? other.getStartDate() == null : this.getStartDate().equals(other.getStartDate()))
            && (this.getEndDate() == null ? other.getEndDate() == null : this.getEndDate().equals(other.getEndDate()))
            && (this.getTotalMoney() == null ? other.getTotalMoney() == null : this.getTotalMoney().equals(other.getTotalMoney()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getProgress() == null ? other.getProgress() == null : this.getProgress().equals(other.getProgress()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getXubi() == null) ? 0 : getXubi().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getImgPath() == null) ? 0 : getImgPath().hashCode());
        result = prime * result + ((getBody() == null) ? 0 : getBody().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getThumbnailPath() == null) ? 0 : getThumbnailPath().hashCode());
        result = prime * result + ((getCoinWorth() == null) ? 0 : getCoinWorth().hashCode());
        result = prime * result + ((getSponsor() == null) ? 0 : getSponsor().hashCode());
        result = prime * result + ((getStartDate() == null) ? 0 : getStartDate().hashCode());
        result = prime * result + ((getEndDate() == null) ? 0 : getEndDate().hashCode());
        result = prime * result + ((getTotalMoney() == null) ? 0 : getTotalMoney().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getProgress() == null) ? 0 : getProgress().hashCode());
        return result;
    }
}